body, html {
  margin: 0;
  padding: 0;
  padding-bottom: 100px;
}

.logo {
  text-align: center;
  margin-top: 30px;
  margin-bottom: 10px;
}

.logo2 {
  margin-bottom: 30px;
  display: flex;
  justify-content: center;
  gap: 40px;
  height: 30px;
  width: auto;
}

.logo2 img {
  height: 30px;
  width: auto;
}



.sikiri{
  border: none;
  border-bottom: 5px solid #59b4e3;
  margin: 30px 0 0 0;
}

.display-flex {
  display: flex;
  justify-content: center;
  gap: 5%;
}

.c-txt.line {
  position: relative;
  display: inline-block;
  line-height: 1;
  margin: 0;
  padding-bottom: 0;
  bottom: -5px;
  vertical-align: top; /* これがポイント！ */
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1.7em;       /* h2の標準サイズに近い */
  font-weight: bold;      /* 太字にする */
  margin: 0.83em 0;
  color: inherit;           /* 親の色を引き継ぐ（青色を防ぐ） */
  text-decoration: none; 
      /* h2のデフォルトの上下マージン */
}
/* a 自身に .c-txt .line が付いているわけではないため、内側の a を直接指定する */
.c-txt.line a,
.c-txt.line a:link,
.c-txt.line a:visited,
.c-txt.line a:hover,
.c-txt.line a:focus,
.c-txt.line a:active {
  color: inherit !important;
  text-decoration: none !important;
}

.c-txt.line::before {
  background: #59b4e3;
  content: '';
  width: 100%;
  height: 2px;
  position: absolute;
  left: 0;
  bottom: 0;
  transform-origin: right top;
  transform: scale(0, 1);
  transition: transform .3s;
  pointer-events: none; /* hoverの誤作動防止（必要なら） */
  font-family: 'Noto Sans JP', sans-serif;
  color: #333;
  color: inherit;           /* 親の色を引き継ぐ（青色を防ぐ） */
  text-decoration: none; 
}

.c-txt.line:hover::before {
  transform-origin: left top;
  transform: scale(1, 1);
  font-family: 'Noto Sans JP', sans-serif;
}


.border-radius {
  width: 45%;
  height: 100px;
  line-height: 100px;
  background-color: white;
  border-radius: 30px;
  color: #59b4e3;
  text-align: center;
  font-size: 30px;
  font-family: "游ゴシック", "arial unicode ms", sans-serif;
  border: 5px inset #59b4e3;
  transition: all 0.3s ease;
}

.border-radius:hover {
  background-color: #59b5e37d;
  color: #ffffff;
  font-size: 38px;
}

.slideshow-container {
  position: relative;
  max-width: 800px;
  overflow: hidden;
  margin: auto;
}

.slide {
  display: none;
  width: 100%;
}

.slide img {
  width: 100%;
  height: auto;
}

.fade {
  animation: fadeEffect 1.5s ease-in-out;
}

@keyframes fadeEffect {
  from {
    opacity: 0.4;
  }
  to {
    opacity: 1;
  }
}
h2{
  font-family: 'Noto Sans JP', sans-serif;
}
.back {
  width: 60%;
  height: auto;
  margin: auto; /* 中央寄せしたい場合はこれも追加 */
}

.back img {
  width: 100%;
  height: auto;
  display: block; /* 余計な隙間をなくすために */
}
/* 前・次ボタン */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -22px;
  color: #fff;
  font-weight: bold;
  font-size: 18px;
  border-radius: 0 3px 3px 0;
  user-select: none;
  background-color: rgba(0,0,0,0.3);
  transition: background-color 0.3s;
}

.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.6);
}

/* ドット */
.dot {
  cursor: pointer;
  height: 12px;
  width: 12px;
  margin: 0 4px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.3s;
}

.active, .dot:hover {
  background-color: #717171;
}
.slide {
  display: none;
  width: 100%;
  position: relative; /* ← これが重要！ */
}

.dots-container {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 10;
}
.fixed-wrapper {
  position: fixed; /* ← これが重要！ */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1;
  background-color: white;
  padding-bottom: 20px;
}



.scroll-content {
  position: relative;
  z-index: 1;
  margin-top: 800px; /* 固定領域の高さに合わせて調整（必要なら増減） */
}



.overlay-image img {
  width: 60%;
  margin-left: 2%;
  height: auto;
  display: block;
  border-radius: 15px;
  opacity: 1;
}

/* 横幅が1200px以上のときは中央寄せにする */
@media screen and (min-width: 1200px) {
  .overlay-image img {
    margin-left: auto;
    margin-right: auto;
    display: block;
  }
}




@media screen and (max-width: 768px) {
  .denden-container {
    flex-direction: column;
  }

  .denden-container img,
  .denden-text {
    width: 100%;
    margin-left: 0;
  }
}

.overlay-image {
  position: absolute;
  top: 900px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  z-index: 9999;
  background-color: white;
  border-radius: 50px 50px 0px 0px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  padding: 20px;
  box-sizing: border-box;
  text-align: center; /* ← これを追加！ */
}


.denden-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap; /* これで狭いときに折り返し可能 */
}

.denden-container img {
  width: 60%;
  margin-left: 2%;
  border-radius: 15px;
  box-sizing: border-box;
}

.denden-text {
  width: 38%;
  padding: 20px;
  font-family: 'Noto Sans JP', sans-serif;
  color: #333;
  box-sizing: border-box;
}
.button-area {
  text-align: center;
  margin-top: 40px;
}

.c-btn.button {
  background: #fff;
  color: #0177fc;
  overflow: hidden;
  z-index: 0; /* ← ここを0にしてみる */
  padding: 12px 30px;
  font-size: 18px;
  font-family: 'Noto Sans JP', sans-serif;
  border: 2px solid #0177fc;
  border-radius: 30px;
  text-decoration: none;
  display: inline-block;
  transition: color 0.3s ease;
  position: relative; 
}

.c-btn.button::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0177fc;
  transform: scaleX(0); /* ← 横方向だけに変更 */
  transform-origin: left;
  transition: transform 0.3s ease;
  z-index: -1;
  color: #fff;
}

.c-btn.button:hover::after {
  transform: scaleX(1);
}

.c-btn.button:hover {
  color: #fff;
}

p.access{
  text-align: center;
  color: #59b4e3;
  font-weight: 900;
  font-size: 50px;
  border-bottom: double 5px #59b4e3;
  display: inline-block;
}

.access-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin: 10px 0;
}

.access-row img.namber {
  width: 40px; /* お好みで調整OK */
  height: auto;
  margin-right: 10px;
}

.access-row p.yuumaru {
  margin: 0;
  font-size: 18px;
  color: #333;
  font-family: 'Noto Sans JP', sans-serif;

}
.accessw {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 40px;
}

.access-left {
  flex: 1;
  min-width: 300px;
}

.access-right {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.access-map {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* ===== タイムテーブル ===== */
.timetable-section {
  margin-top: 60px;
  font-family: 'Noto Sans JP', sans-serif;
  text-align: center;
}

.timetable-title {
  color: #59b4e3;
  font-size: 42px;
  margin: 10px 0 30px;
  font-weight: 900;
  border-bottom: double 5px #59b4e3;
  display: inline-block;
  padding: 0 25px 8px;
}

.timetable-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  margin-bottom: 25px;
}

.timetable-block {
  background: #ffffff;
  border: 2px solid #59b4e3;
  border-radius: 20px;
  padding: 20px 28px 26px;
  width: 300px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  text-align: left;
}

.timetable-sub {
  margin: 0 0 12px;
  font-size: 22px;
  color: #0177fc;
  text-align: center;
}

.timetable-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 15px;
}

.timetable-list li {
  background: #f5fbff;
  border: 1px solid #cfeafb;
  padding: 8px 12px;
  border-radius: 10px;
  display: flex;
  gap: 10px;
  align-items: baseline;
}

.timetable-list li time {
  font-weight: 700;
  color: #0177fc;
  min-width: 55px;
  display: inline-block;
  font-variant-numeric: tabular-nums;
}

.nn-demo-note {
  font-size: 16px;
  color: #333;
  background: #fff7d6;
  border: 1px solid #ffd86b;
  padding: 12px 18px;
  border-radius: 12px;
  display: inline-block;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

@media (max-width: 640px) {
  .timetable-title { font-size: 34px; }
  .timetable-block { width: 100%; max-width: 360px; }
  .timetable-wrapper { gap: 24px; }
}

.timetable-notice {
  margin-top: 28px;
  font-size: 14px;
  line-height: 1.6;
  color: #555;
  background: #eef9ff;
  border: 1px dashed #59b4e3;
  padding: 12px 16px;
  border-radius: 10px;
  display: inline-block;
}

